<#import "spring.ftl" as spring />

<html>
  <head>
    <title>Login...</title>
  </head>

  <body>

     <a href="<@spring.url "/install"/>">install application data</a> <br>
     <a href="<@spring.url "/register"/>">register user</a> <br><br>

    <h2>Login</h2>


    <#if RequestParameters.error??>
      <font color="red">
        Your login attempt was not successful, try again.<BR>
        Reason: ${SPRING_SECURITY_LAST_EXCEPTION.message}
      </font>
    </#if>


    <form action="loginCheckSecurity" method="POST">
      <table>
        <tr><td><@spring.message "login.user"/>:</td><td><input type='text' name='j_username' <#if RequestParameters.error??>value='${SPRING_SECURITY_LAST_USERNAME}'</#if> ></td></tr>
        <tr><td><@spring.message "login.password"/>:</td><td><input type='password' name='j_password'></td></tr>
        <tr><td><input type="checkbox" name="_spring_security_remember_me"></td><td><@spring.message "login.rememberMe"/></td></tr>
        <tr><td colspan='2'><input type="submit" value="Login"><input name="reset" type="reset"></td></tr>
      </table>

    </form>
	<br/>
    <small>

	<P>Installed valid users:

	<br/><b>test1@mail.ru</b>/<b>test1</b>
	<br/><b>test2@mail.ru</b>/<b>test2</b>
    </small>
  </body>
</html>